﻿@{
    ViewBag.Title = "EmployeeFlie";
    Layout = "~/Views/Shared/_BootstrapUI.cshtml";
}

<link href="~/Content/dataTable/dtConfig.css" rel="stylesheet" />
<link href="~/Content/datetimePicker/datetimePicker.css" rel="stylesheet" />
<script src="~/Content/datetimePicker/moment.js"></script>
<div class="panel panel-default mb0">
    <div class="panel-body bb panel_inquire">
        <form id="form_inquire" role="form" class="form-inline">
            <div class="form-group">
                <input id="query" type="text" class="form-control" placeholder="员工姓名" style="width: 110px;">
            </div>
            <div class="form-group">
                <select id="parts" type="text" placeholder="所属部门" class="form-control  input-sm input-sm" required="required" data-parsley-error-message="请输入所属部门...">
                    @{
                        var blls = new FZKJ.BLL.buss_attribution();
                        var lists = blls.GetModelList(" value='department'");
                        <option value=""></option>
                        if (lists.Count > 0)
                        {
                            var list1s = blls.GetModelList(" pid=" + lists[0].id);
                            foreach (var item in list1s)
                            {
                                <option value="@item.id">@item.label</option>
                            }
                        }
                    }
                </select>
            </div>
            <button id="btnInquire" type="button" class="btn btn-primary">查&nbsp;询</button>
        </form>
    </div>
    <input type="hidden" id="btn_val" />
    <div id="btnOp" class="panel-heading">
    </div>
    <div class="panel-body bt panel-body-dt-normal">
        <div class="table-responsive">
            <table id="dt_admin" class="table table-striped nowrap"></table>
        </div>
    </div>
</div>



<div id="InsuranceAccountAddModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabelLarge" aria-hidden="true" class="modal fade">
    <div class="modal-dialog" style="width: 50%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" data-dismiss="modal" aria-label="Close" class="close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 id="title1" class="modal-title">添加员工</h4>
            </div>
            <div class="modal-body">
                <form id="form" role="form" class="form-horizontal" data-parsley-validate="" novalidate="">
                    <input id="id" value="-1" hidden="hidden" />
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">姓名</label>
                                <div class="col-md-8">
                                    <input id="name" type="text" placeholder="姓名" class="form-control  input-sm  input-sm" required="required" value="0" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">员工号</label>
                                <div class="col-md-8">
                                    <input id="code" type="text" placeholder="员工号" class="form-control  input-sm  input-sm" required="required" value="0" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">性别</label>
                                <div class="col-md-8">
                                    <select id="sex" type="text" placeholder="卡类型" class="form-control  input-sm input-sm" required="required">
                                        <option value="0">男</option>
                                        <option value="1">女</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">手机号</label>
                                <div class="col-md-8">
                                    <input id="mobile" type="text" placeholder="手机号" class="form-control  input-sm  input-sm" required="required" value="0" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-md-4 control-label">所属部门</label>
                                <div class="col-md-8">
                                    <select id="depart" type="" placeholder="所属部门" class="form-control  input-sm input-sm" required="required">
                                        @{
                                            var bll = new FZKJ.BLL.buss_attribution();
                                            var list = bll.GetModelList(" value='department'");
                                            if (list.Count > 0)
                                            {
                                                var list1 = bll.GetModelList(" pid=" + list[0].id);
                                                foreach (var item in list1)
                                                {
                                                    <option value="@item.id">@item.label</option>
                                                }
                                            }
                                        }
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                <button id="btnCardSave" type="button" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
</div>




<script src="~/Content/datetimePicker/moment.js"></script>
<script src="~/Content/datetimePicker/datetimePicker.js"></script>
<script src="~/Pscripts/Department/Employee.js?v=@DateTime.Now.ToString("yyyyMMddHHmmssfff")"></script>
